package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.OmcShiftLog;
import com.csun.cmny.provider.model.domain.OmcShifts;
import com.csun.cmny.provider.model.dto.DeviceAlertDto;
import com.csun.cmny.provider.model.vo.DeviceAlertReqVo;

import java.util.List;

public interface OmcShiftLogService extends IService<OmcShiftLog> {

    /**
     * 查询出进行交接班的班次
     */
    List<OmcShifts> queryShiftsList(OmcShiftLog omcShiftLog, LoginAuthDto loginAuthDto);

    /*
    * 根据日期查询交班日志
    * */
    List<OmcShiftLog> selectByDate(OmcShiftLog omcShiftLog, LoginAuthDto loginAuthDto);

    /*
    * 批量新增交班日志
    * */
    int batchAddShiftLog(List<OmcShiftLog> omcShiftLogList, LoginAuthDto loginAuthDto);

    /*
     * 批量修改交班日志
     * */
    int batchUpdateShiftLog(List<OmcShiftLog> omcShiftLogList, LoginAuthDto loginAuthDto);

    /*
    * 查询出主要数据异常情况
    * */
    List<DeviceAlertReqVo> selectMainExc(OmcShiftLog convert, LoginAuthDto loginAuthDto);

    /*
    * 同步老人报警信息到交班日志
    * */
    Integer syncAlertMsgToShiftLog(DeviceAlertDto dto);
}
